// components/relations/li.js
Component({

  relations: {
    "./ul": {
      type: 'parent',
      linked(target) {
        console.log(target.data.info)
      }
    }
  },

  /**
   * 组件的属性列表
   */
  properties: {

  },

  lifetimes: {
    created() {
      console.log('created.')
    },

    attached() {
      console.log('attached')
    },

    ready() {
      console.log('ready')
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    info: 'li element'
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
